//
//  BDReservationModel.h
//  BadBoy
//
//  Created by wen on 2017/7/6.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BDShopCouponsModel.h"
#import "BDShopModel.h"
#import <MJExtension/MJExtension.h>
#import "BDUserModel.h"

typedef NS_ENUM(NSUInteger, BDReservationStatus) {
    BDReservationStatusNotUse,      //未使用
    BDReservationStatusUsed,        //使用了等待评价
    BDReservationStatusOverdue,     //过期
    BDReservationStatusRefunding,   //退款中
    BDReservationStatusRefunded,    //已经退款，也是过期的一部分
    BDReservationStatusCommented    //评价完成
};

@interface BDReservationModel : NSObject

@property (nonatomic, strong) BDUserModel *user;
@property (nonatomic, strong) BDShopModel *shop;
@property (nonatomic, strong) BDShopCouponsModel *coupon;
@property (nonatomic, assign) NSInteger my_id;
@property (nonatomic, assign) NSInteger user_id;
@property (nonatomic, assign) NSInteger shop_id;
@property (nonatomic, assign) NSInteger coupon_id;
@property (nonatomic, assign) NSInteger order_id;
@property (nonatomic, assign) NSInteger code;
@property (nonatomic, strong) NSString *amount;
@property (nonatomic, assign) BDReservationStatus status;
@property (nonatomic, assign) NSInteger type;
@property (nonatomic, assign) NSInteger verify_at;

@property (nonatomic, strong) NSString *updateString;
@property (nonatomic, assign) NSInteger channel;//支付方式
@property (nonatomic, strong) NSString *total_amount;//总价
@property (nonatomic, strong) NSString *receipt_amount;//实付

@end
